import PriorityQueue.MyPriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-07-23
 * Time: 15:23
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {27, 15, 19, 18, 28, 34, 65, 49, 25, 37};

        MyPriorityQueue myPriorityQueue = new MyPriorityQueue();

        myPriorityQueue.initElem(array);
        myPriorityQueue.createHeap();

        /*myPriorityQueue.offer(100);//插入
        System.out.println(myPriorityQueue.poll());//删除*/

        myPriorityQueue.heapSort();


    }
}
